var str ="I love bluemsun";
var strReverse = str.split(' ').reverse().join(' ');
console.log(strReverse);